import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/admin/sys/message/page',
    method: 'get',
    params: query
  })
}

export function doReadMessage(messageId) {
  return request({
    url: '/admin/sys/message/doReadMessage',
    method: 'post',
    params: {
      messageId
    }
  })
}

export function getMessages() {
  return request({
    url: '/admin/sys/message/unReadMessageCount',
    method: 'get'
  })
}

export function getTask() {
  return request({
    url: '/exam/act/task/todoCount',
    method: 'get'
  })
}